function f_record_info_to_dbadb()
{ #将工单状态记录到${dbadb_port}
    declare res_type res_table res_remarks __
    res_type="${1}"
    res_table="${2}"
    res_remarks="${3}"
    res_mail="${4}"
    res_mail_info="${5}"
    [ -z "${user_order_id}" ] && user_order_id=0
    __="insert into ${t_record_task}(order_id,user_mail,order_type,port,dbname,t_name,t_time,remarks) 
        select ${user_order_id},'${user_mail_addr}','${res_type}',${mysql_port},'${mysql_db}','${res_table}','$(date "+%F %H:%M:%S")','${res_remarks}';"

    if [ "${res_mail}x" == "mailx" ]
    then
        __="${__} insert into ${t_prog_task}(order_id,user_mail,port,table_name,send_state,start_time,remarks) select ${user_order_id},
            '${g_user_mail_addr}',${mysql_port},'${mysql_db}.${res_table}',0,'$(date -d @${script_start_time} "+%F %H:%M:%S")','${res_mail_info}';"
    fi
    f_exe_sql_to_dbadb "${__}" "f_record_info_to_dbadb" || true
    f_get_html_info_prepare_for_pro "${mysql_port}" "${user_order_id}" || true   #将进度打印出来, 发送邮件
    return 0
}

